build(pip): require java-api 17.26.5+#30
Conversation
this version introduced java.lang.Record 8.3.5.post1 and beyond will require this
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates Python packaging metadata to require at least version 17.26.5 of the java-api dependency, aligning with the need for java.lang.Record support for versions 8.3.5.post1 and later. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue, and left some high level feedback:
- You updated the
java-apiconstraint insetup.cfgbut not inrequirements.in; consider aligning the version requirement there as well to keep dependency definitions consistent.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- You updated the `java-api` constraint in `setup.cfg` but not in `requirements.in`; consider aligning the version requirement there as well to keep dependency definitions consistent.
## Individual Comments
### Comment 1
<location path="setup.cfg" line_range="41" />
<code_context>
enum34
-java-api
+java-api>=17.26.5
</code_context>
<issue_to_address>
**suggestion (bug_risk):** Consider constraining the upper bound of `java-api` or documenting compatibility assumptions.
Using `java-api>=17.26.5` without an upper bound means any future breaking major version will be pulled in, which is risky for a Python 2.7–locked project that may not be updated often. Please either add a conservative upper cap (e.g., `<18`) based on what’s validated, or document a confirmed semver guarantee that future major versions will remain compatible.
```suggestion
# Pin java-api to a compatible major version range for this Python 2.7.18 project.
# Future major versions may introduce breaking changes; adjust the upper bound after validation.
java-api>=17.26.5,<18
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| install_requires = | ||
| enum34 | ||
| java-api | ||
| java-api>=17.26.5 |
There was a problem hiding this comment.
suggestion (bug_risk): Consider constraining the upper bound of java-api or documenting compatibility assumptions.
Using java-api>=17.26.5 without an upper bound means any future breaking major version will be pulled in, which is risky for a Python 2.7–locked project that may not be updated often. Please either add a conservative upper cap (e.g., <18) based on what’s validated, or document a confirmed semver guarantee that future major versions will remain compatible.
| java-api>=17.26.5 | |
| # Pin java-api to a compatible major version range for this Python 2.7.18 project. | |
| # Future major versions may introduce breaking changes; adjust the upper bound after validation. | |
| java-api>=17.26.5,<18 |
this version introduced java.lang.Record
8.3.5.post1 and beyond will require this
Summary by Sourcery
Build: